package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MallMemberRechargeFlow;
import com.rockcent.mall.lib.domain.enumclass.AuditStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;


/**
 * 会员账号充值提交记录
 * Created by zhangjh on 2017/03/07.
 */
@Repository
public interface MallMemberRechargeFlowRepository extends JpaRepository<MallMemberRechargeFlow, Long>, JpaSpecificationExecutor, MallMemberRechargeFlowRepositoryCustom {


    MallMemberRechargeFlow findTop1BySeqNo(String seqNo);

    MallMemberRechargeFlow findTop1ByMallMemberIdOrderByLastUpdatedDesc(Long mallMemberId);

    MallMemberRechargeFlow findByIdAndAuditStatus(Long id, AuditStatus auditStatus);
}

